﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Meiam.System.Common
{
    public class MailEntity
    {
        /// <summary>
        /// 发件邮箱
        /// </summary>
        public string MailFrom { get; set; }
        /// <summary>
        /// 邮箱密码
        /// </summary>
        public string MailPwd { get; set; }
        /// <summary>
        /// 发件服务器
        /// </summary>
        public string MailHost { get; set; }
        /// <summary>
        /// 收件邮箱
        /// </summary>
        public List<MailToEntity> MailTos { get; set; }

        public MailEntity()
        {
            MailTos = new List<MailToEntity>();
        }
    }

    public class MailToEntity
    {
        public string Type { set; get; }
        public string Value { set; get; }
    }

    public class OAEntity
    {
        /// <summary>
        /// OA
        /// </summary>
        public List<OAToEntity> OATos { get; set; }
    }

    public class OAToEntity
    {
        public string Type { set; get; }
        public string Value { set; get; }
    }
}
